Namespace - LJCNetCommon
Parameters
methodName - The Method name.
parameterNames - The parameter types.
Returns
The ConstructorInfo value.
Syntax
C# |
public ConstructorInfo SetConstructorInfo(String methodName, String[] parameterNames)
|
Set the ConstructorInfo reference. (RE)
Remarks
Sets the MethodName property value and attempts to set the ConstructorInfo
property value if the type reference and constructor with the correct
parameters exist.
Example
C# |
using System;
using System.Reflection;
using LJC.Net.Common;
public ConstructorInfo RetrieveConstructorInfo(string assemblyFileSpec, string fullTypeName
, string constructorName, string[] parameterNames)
{
ConstructorInfo retValue = null;
LJCAssemblyReflect assemblyReflect = new LJCAssemblyReflect();
Assembly assembly = assemblyReflect.SetAssembly(assemblyFileSpec);
Type typeReference = assemblyReflect.SetTypeReference(fullTypeName);
retValue = assemblyReflect.SetConstructorInfo(constructorName, parameterNames);
return retValue;
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.